﻿using System.Collections.Generic;
using System;

namespace QuizzAdminData
{
    public class Team
    {

        private int _id;

        private string _naam;

        private List<Speler> _teamSpelers;

        public Team()
        {
            _teamSpelers = new List<Speler>();
        }

        public int Id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }

        public string Naam
        {
            get
            {
                return this._naam;
            }
            set
            {
                this._naam = value;
            }
        }

        public List<Speler> Spelers
        {
            get
            {
                return this._teamSpelers;
            }
            set
            {
                this._teamSpelers = value;
            }
        }

        public void VoegSpelerToe(Speler s)
        {
            this._teamSpelers.Add(s);
        }
    }
}